package com.briup.day18;

import java.util.Scanner;

public class Test_Finally {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入两个整形数");
        int x=sc.nextInt();
        int y=sc.nextInt();
        int div = div(x,y);
    }
    private static int div(int x, int y) {
        int r=-1;
        try {
            r=x/y;
        } catch (Exception e) {
            e.printStackTrace();
        }finally{
            System.out.println("in finally...");
        }
        return r;
    }
}
